function encode(string) {
    return Buffer.from(string).toString("base64");
}

function decode(string) {
    return Buffer.from(string, "base64").toString("utf8");
}

module.exports = {
    encode,
    decode,
};
